<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false"%>
<html>
<head>
    <title>首拖件导入历史记录</title>
    <style>
        .table-responsive{
            overflow: auto; width: 100%;
        }
        .table {
            white-space: nowrap;
            overflow:scroll;
            width: inherit;
        }
        .table td {
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    </style>
</head>
<body>
<div ng-app="myApp" ng-controller="MajorRuleLogCtrl">
    <div class="row">
        <ui-container url="rule/rulelog/majorrule/list" key="majorRuleLog-list-00">
            <ui-search-form>
                <search-select-remote placeholder="请选择版本号" url="rule/rulelog/majorrule/getversionlist" class="col-md-3" name="version" value-name="version" text-name="version">
            </ui-search-form>
            <ui-table-tool>
                <a class="btn btn-sm btn-primary" href="javascript:void(0);" onclick="reSet()">重置</a>
            </ui-table-tool>
            <ui-table>
                </ui-form>
            </ui-table>
            <table-page/>
        </ui-container>
    </div>
</div>
<script>
    angular.module('myApp',['ui.table']);
    angular.module('myApp').controller('MajorRuleLogCtrl', function($scope){

        $scope.addOrg = function (items) {
            console.info(items)
        };

        $scope._columns=[
            {name:'createUName',head:'修改人'},
            {name:'createTime',head:'修改时间',render(data,value){
                return value == null ? '': new Date(value).format("yyyy-MM-dd hh:mm:ss");
            }},
            {name:'version',head:'版本号',render(data,value){
                return value == null ? '': value;
            }},
            {name:'changeType',head:'更新类型',render(data,value){
                switch (value + "") {
                    case "0" :
                        return "更新";
                    case "1" :
                        return "删除";
                    case "2" :
                        return "新增";
                    default :
                        return "";
                }
            }},
            {name:'supplierName',head:'供应商',render(data,value){
                return value == null ? '': value;
            }},
            {name:'description',head:'描述',render(data,value){
                return value == null ?'':value ;
            }},
            {name:'parser',head:'规则解析器类',render(data,value){
                return value == null ? '': value;
            }},
            {name:'initJson',head:'解析器类初始化参数',render(data,value){
                return value == null ?'':value ;
            }},
            {name:'ruleFlag',head:'规则标记',render(data,value){
                return value == null ?'':value ;
            }}
        ];
    });
</script>
<script src="static/common/js/common.js"></script>
</body>
</html>
